package chixing.day16.work;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Record {
    private int id;
    private String name;
    private int organizationId;
    private char gender;
    private long number;
    private LocalDateTime transactionDate;
    private double amount;

    public Record(int id, String name, int organizationId, char gender, long number, LocalDateTime transactionDate, double amount) {
        this.id = id;
        this.name = name;
        this.organizationId = organizationId;
        this.gender = gender;
        this.number = number;
        this.transactionDate = transactionDate;
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(int organizationId) {
        this.organizationId = organizationId;
    }

    public char getSex() {
        return gender;
    }

    public void setSex(char sex) {
        this.gender = sex;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    public LocalDateTime getBirthDate() {
        return transactionDate;
    }

    public void setBirthDate(LocalDateTime birthDate) {
        this.transactionDate = birthDate;
    }

    public double getSalemoney() {
        return amount;
    }

    public void setSalemoney(double salemoney) {
        this.amount = salemoney;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", organizationId=" + organizationId +
                ", sex=" + gender +
                ", number=" + number +
                ", birthDate=" + transactionDate +
                ", salemoney=" + amount +
                '}';
    }
}
